ABC150 D - Semi Common Multiple